<template>
  <Table v-if="isFlage == 0" @getBlack="getShow"></Table>
  <ExdAccounts v-else-if="isFlage == 1" :DataId="DataId" @getBlack="getShow"></ExdAccounts>
</template>

<script setup>
  import Table from './model/table.vue';
  import ExdAccounts from './model/exdaccounts.vue';
  import { ref } from 'vue';
  //0 表格
  //1 点击进入年终决算

  const DataId = ref();
  const isFlage = ref(0);
  //控制表格切换
  function getShow(e) {
    isFlage.value = e.type;
    DataId.value = e.id;
  }
</script>

<style lang="scss" scoped></style>
